package com.hopital5.zhangyz.model;

import lombok.*;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import java.util.List;

@Entity
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ActivityItem extends BaseModelAndLongId {
    private String name;
    private String unit;
    @OneToMany(mappedBy = "activityItem")
    private List<ActivityActivityItem> activityActivityItems;
}
